package linear_list.slistwithhead;

public class Test {
    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addLast(2);
        list.addLast(3);
        list.addFirst(10);
        list.addIndex(1,30);
        list.addIndex(1,2);
        list.addIndex(1,2);
        list.addIndex(1,2);
        list.addIndex(1,2);
        list.addFirst(2);
        System.out.println(list);
        list.removeAllKey(30);
        list.clear();
        System.out.println(list);
    }
}
